import _http from '@/utils/http'

export default {
    sucaiTypeLoadAll(params, loading, headers) {
        return _http('post', {
            url: '/ums/sucai/type/load/all',
            apiName: '拉取所有分类',
        }, params, loading, headers)
    },
    sucaiTypeAdd(params, loading, headers) {
        return _http('post', {
            url: '/ums/sucai/type/add',
            apiName: '新增分类',
        }, params, loading, headers)
    },
    sucaiTypeDelete(params, loading, headers) {
        return _http('post', {
            url: '/ums/sucai/type/delete',
            apiName: '删除分类',
        }, params, loading, headers)
    },
    sucaiLoad(params, loading, headers) {
        return _http('post', {
            url: '/ums/sucai/load',
            apiName: '素材拉取',
        }, params, loading, headers)
    },
    sucaiAdd(params, loading, headers) {
        return _http('post', {
            url: '/ums/sucai/add',
            apiName: '单个新增素材',
        }, params, loading, headers)
    },
    sucaiModify(params, loading, headers) {
        return _http('post', {
            url: '/ums/sucai/modify',
            apiName: '素材名称、分类修改',
        }, params, loading, headers)
    },
    sucaiDelete(params, loading, headers) {
        return _http('post', {
            url: '/ums/sucai/delete',
            apiName: '删除素材',
        }, params, loading, headers)
    },
}
